package com.example.administrator.myapplication.set.PersonalCenter;

import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;

import com.example.administrator.myapplication.R;
import com.example.administrator.myapplication.set.SetMainActivity;

/**
 * Created by Administrator on 2018/1/16.
 */

public class PersonalCenterunTestActivity extends AppCompatActivity{
    private Toolbar toolbar;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_personcenter_untest);
        toolbar= (Toolbar) findViewById(R.id.toolbar_personcenter);
        toolbar.setTitle("个人中心");
        toolbar.setTitleMarginStart(200);
        toolbar.setTitleTextColor(Color.parseColor("#ffffff"));
        getPersonalcenterFragment();

    }

    public void getPersonalcenterFragment(){
        PersonalCenterunTestFragment fragment  =new PersonalCenterunTestFragment();
        FragmentManager fm =this.getFragmentManager();
        FragmentTransaction ft =fm.beginTransaction();
        ft.replace(R.id.layout_personcenter,fragment);
        ft.commit();
    }
}
